-
-
Notifications
You must be signed in to change notification settings - Fork 363
feat(MultiSelect): add DefaultVirtualizeItemText parameter #5682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's Guide by SourceryThis pull request introduces the Sequence diagram for GetItemsByVirtualize methodsequenceDiagram
participant MultiSelect
MultiSelect->MultiSelect: GetItemsByVirtualize()
MultiSelect->MultiSelect: CurrentValueAsString.Split()
alt DefaultVirtualizeItemText is not null or empty
MultiSelect->MultiSelect: DefaultVirtualizeItemText.Split()
end
loop For each value
MultiSelect->MultiSelect: Create SelectedItem
end
MultiSelect-->MultiSelect: Return List<SelectedItem>
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We encountered an error and are unable to review this PR. We have been notified and are working to fix it.
You can try again by commenting this pull request with @sourcery-ai review, or contact us for help.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5682 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 654 654
Lines 29689 29705 +16
Branches 4217 4219 +2
=========================================
+ Hits 29689 29705 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #5681
Summary By Copilot
This pull request includes several updates to the
MultiSelectcomponent and its usage in theMultiSelectssample. The changes focus on enhancing the virtualized item handling and updating related tests.Enhancements to
MultiSelectcomponent:DefaultVirtualizeItemTextto theMultiSelectcomponent to set default text for virtualized items. (src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs)GetItemsByVirtualizemethod to handle mapping virtualized item values to their corresponding texts. (src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs)OnParametersSetmethod to use the newGetItemsByVirtualizemethod for virtualized items. (src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs)Changes to
MultiSelectssample:MultiSelects.razorfile to use the newDefaultVirtualizeItemTextparameter and updated the binding values for virtualized items. (src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor) [1] [2]src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs)Updates to unit tests:
DefaultVirtualizeItemTextin virtualized items. (test/UnitTest/Components/MultiSelectTest.cs) [1] [2]Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Adds the DefaultVirtualizeItemText parameter to the MultiSelect component to allow setting default text for virtualized items. This change also updates the MultiSelects sample to use the new parameter and updates the initialization logic for virtualized items.
New Features:
Tests: